#include "TreadmillActivateCommand.h"

TreadmillActivateCommand::TreadmillActivateCommand(Treadmill* receiver): treadmill(receiver)
{
}

TreadmillActivateCommand::TreadmillActivateCommand(const TreadmillActivateCommand& rhs): GameCommand(rhs), treadmill(rhs.treadmill)
{
}

TreadmillActivateCommand::~TreadmillActivateCommand()
{
}

void TreadmillActivateCommand::Execute()
{
	if (treadmill)
	{
		treadmill->Move();
	}
}

GameCommand* TreadmillActivateCommand::Clone() const
{
	return new TreadmillActivateCommand(*this);
}
